<form id="form_add_role" enctype="multipart/form-data" method="post" action="#" class="form">
  <input type="hidden" name="page_code" value="role">
  <div class="wrapper-form">
    <div id="form_content_add_role"></div>
    <dl class="row">
      <dt class="tit">
        <label>状态</label>
      </dt>
      <dd class="opt">
        <label><input type="radio" value="1" checked="checked" name="status">启用</label>
        <label><input type="radio" value="0" name="status">禁用</label>
        <span class="err"></span>
      </dd>
    </dl>
  </div>
</form>
<script>
  $(function(){
    var pageCode = "role";
    var formId = "#form_add_" + pageCode;
    var formHtml = $(formId).autoProduceFormHtml(pageCode);

    var formContentId = "#form_content_add_" + pageCode;
    $(formContentId).html(formHtml);
    $.parser.parse(formContentId);
  });
</script>